package com.lw.carmanage.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @version 1.0
 * @description:
 * @date 2022/3/29 15:31
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @PreAuthorize("hasAnyAuthority('sys:config:list')")
    @GetMapping("/test")
    public String test(){
        return "aaaaaaaaaaaaaa";
    }


}
